-- GENERATED SPELL FOR [Gothik the Harvester] --


function spell0_28890(pUnit, Event) --@Ghoulplosion,n/a--
pUnit:FullCastSpellOnTarget(52672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28890', 593, 1)
end

function Sorts_28890(pUnit, Event)
local choix_sorts_28890 = math.random(0, 0)
if choix_sorts_28890 == 0 then
pUnit:RegisterEvent('spell0_28890', 1, 1)
end
end

function mob28890_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28890', math.random(1500, 3000), 1)
end

function mob28890_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28890_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28890_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28890, 1, 'mob28890_Action')
RegisterUnitEvent(28890, 2, 'mob28890_Leave')
RegisterUnitEvent(28890, 3, 'mob28890_Kill')
RegisterUnitEvent(28890, 4, 'mob28890_Die')
